<?php $this->load->view('header_view')?>

<div id="main">
	<h2>Don hang</h2>
    <?php echo form_open(base_url().'order/add.html',array('id'=>'f_order','name'=>'f_order'))?>
    <div class="subcolumns">
    	<div class="c100">
        	<table>
            	<tr>
                	<th>Ten san pham</th>
                    <th>So luong</th>
                    <th>Gia</th>
                    <th>So tien</th>
                </tr>
            	<tr>
                	<td><?php echo $form_info['title']?></td>
                    <td><input type="text" id="tf_quantity" name="tf_quantity" value="1" /></td>
                    <td><span style="display:inline-block;font-weight:bold" id="sp_price_discount" name="sp_price_discount"><?php echo $form_info['price_discount']?></span></td>
                    <td><span style="display:inline-block;font-weight:bold" id="sp_money_pay" name="sp_money_pay"><?php echo $form_info['price_discount']?></span></td>
                </tr>                
            </table>
			<span style="float:right; display:inner-block"><input type="submit" id="btn_order" name="btn_order" value="Order" /></span>
        </div>
    </div>
    <?php echo form_close()?>
    
    <h2>Phuong thuc Thanh toan</h2>
    <div class="subcolumns">
    	<h4>Thong tin ca nhan</h4>
    <?php if (!$this->session->userdata('ss_email')) { ?>
	    <div id="div_register" class="c50l">
        	<table>
            	<tr>
                	<td><?php echo $this->lang->line('firstname');?></td>
                    <td><input type="text" id="tf_firstname" name="tf_firstname"/></td>
                </tr>
                <tr>
                	<td><?php echo $this->lang->line('lastname');?></td>
                    <td><input type="text" id="tf_lastname" name="tf_lastname"/></td>
                </tr>
                 <tr>
                	<td><?php echo $this->lang->line('email');?></td>
                    <td><input type="text" id="tf_email" name="tf_email"/></td>
                </tr>
                <tr>
                	<td><?php echo $this->lang->line('password');?></td>
                    <td><input type="password" id="tf_password" name="tf_password"/></td>
                </tr>
                <tr>
                	<td><?php echo $this->lang->line('confirm_password');?></td>
                    <td><input type="password" id="tf_confirm_password" name="tf_confirm_password"/></td>
                </tr>
            </table>	
		</div>
        
        <div id="div_member" class="c50r">
            <div id="div_askmember" style="display:block; position:absolute">
                Already have an Account?
                <a id="a_signin" href="javascript:;">Sign in</a>
            </div>
            
            <div id="div_signin" style="display:none; position:absolute; margin-top:-20px; background-color:#DDEDCC">
                <h5>Sign in</h5>
                <form id="f_login" name="f_login">
                    <table>
                        <tr>
                            <td><?php echo $this->lang->line('email');?></td>
                            <td><input type="text" id="tf_signin_email" name="tf_signin_email" value=""/></td>
                        </tr>
                        <tr>
                            <td><?php echo $this->lang->line('password');?></td>
                            <td><input type="password" id="tf_signin_password" name="tf_signin_password" value=""/></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="button" id="btn_signin" name="btn_signin" value="Sign in"/></td>
                        </tr>
                    </table>
                 </form>
            </div>
        </div>  
        <div id="profile" class="c50l">     
    <?php } else {?>
	    	<table>
            	<tr>
                	<td><?php echo $this->lang->line('firstname');?></td>
                    <td><span style="display:inline-block"><?php echo $this->session->userdata('ss_firstname')?></span></td>
                </tr>
                <tr>
                	<td><?php echo $this->lang->line('lastname');?></td>
                    <td><span style="display:inline-block"><?php echo $this->session->userdata('ss_lastname')?></span></td>
                </tr>
                 <tr>
                	<td><?php echo $this->lang->line('email');?></td>
                    <td><span style="display:inline-block"><?php echo $this->session->userdata('ss_email')?></span></td>
                </tr>
            </table>	
    <?php }?>
    	</div>
    </div>
</div>

<?php $this->load->view('footer_view')?>